package cn.weyoungstudio.hwes.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Works implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer workId;
    private String workName;
    private String workUrl;
    private Date createTime;
    private Date updateTime;
    private BigDecimal score;
    private Integer userId;

    /**
     * @return work_id
     */
    public Integer getWorkId() {
        return workId;
    }

    /**
     * @param workId
     */
    public void setWorkId(Integer workId) {
        this.workId = workId;
    }

    /**
     * @return work_name
     */
    public String getWorkName() {
        return workName;
    }

    /**
     * @param workName
     */
    public void setWorkName(String workName) {
        this.workName = workName == null ? null : workName.trim();
    }

    /**
     * @return work_url
     */
    public String getWorkUrl() {
        return workUrl;
    }

    /**
     * @param workUrl
     */
    public void setWorkUrl(String workUrl) {
        this.workUrl = workUrl == null ? null : workUrl.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return score
     */
    public BigDecimal getScore() {
        return score;
    }

    /**
     * @param score
     */
    public void setScore(BigDecimal score) {
        this.score = score;
    }

    /**
     * @return user_id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", workId=").append(workId);
        sb.append(", workName=").append(workName);
        sb.append(", workUrl=").append(workUrl);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", score=").append(score);
        sb.append(", userId=").append(userId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}